import 'package:framelib/config/route_config.dart';
import 'package:get/get.dart';
import 'package:module_business/comm/view/home_page.dart';
import 'package:module_business/comm/view/splash_page.dart';
import 'package:module_business/comm/viewmodel/home_view_model.dart';
import 'package:module_business/comm/viewmodel/splash_view_model.dart';

class CommRoute {
  static final List<GetPage> getPages = [
    GetPage(
        name: RouteConfig.homePage,
        page: () => HomePage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => HomeViewModel())])),
    GetPage(
        name: RouteConfig.splashPage,
        page: () => SplashPage(),
        binding:
        BindingsBuilder(() => [Get.lazyPut(() => SplashViewModel())])),
  ];
}
